#ifndef __PROJECTILE_H__
#define __PROJECTILE_H__

#include "dxManager.h"
#include "diManager.h"

class EnergyBall
{
public:

	EnergyBall();
	~EnergyBall();
	void setBallPos(D3DXVECTOR3 a_playerPos, float a_scale);
	void setBallRot(D3DXVECTOR3 a_playerRot);
	void setNukeScale(float a_scale);
	void initEnrgyBall();
	void createEnrgyBall();
	void drawBall();
	void updateBall(float a_time);
	void destroyEnrgyBall();

	void colorBall();
	void setBallOld() {m_bOldPos = m_ballPos;}
	void ballStay() { m_ballPos = m_bOldPos; }

	D3DXVECTOR3 getBallPos();
	float       getBallRad();
	
	D3DXVECTOR3 getNukePos();
	float       getNukeRad();

private:

	ID3DXMesh   *m_sphereMesh;

	D3DXVECTOR3		m_ballPos;
	D3DXVECTOR3		m_bOldPos;
	D3DXVECTOR3		m_ballRot;

	float			m_time;
	float			m_scale;
};

#endif